export default class {
  constructor(send2Ue, listen2Ue) {
    this.send2Ue = send2Ue;
    this.listen2Ue = listen2Ue;
    this.baseCmd = '/MeasurementTool';
  }
  clear(data = {}, cb) {
    // 清除测量
    this.send2Ue(`${this.baseCmd}/ClearMeasurement`, data, cb);
    return '清除测量';
  }
  activeCoordinates(data = {}, cb) {
    // 激活测量点位
    this.send2Ue(`${this.baseCmd}/CoordinateMeasurement`, data, cb);
  }
  activeArea(data = {}, cb) {
    // 激活测量面积
    this.send2Ue(`${this.baseCmd}/AreaMeasurement`, data, cb);
  }
  activeDistance(data = {}, cb) {
    // 激活测量距离
    this.send2Ue(`${this.baseCmd}/DistanceMeasurement`, data, cb);
  }
  activeHeight(data = {}, cb) {
    // 激活测量高度
    this.send2Ue(`${this.baseCmd}/HeightMeasurement`, data, cb);
  }
}
